body {
    margin: 0 auto;
    width: 100vw;
    height: 100vh;
    background-image: url("../img/huanghun.jpg");
}


/* 设置头部 */
header {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    height: 5vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.2);
}

/* logo */
.logo {
    width: 10%;
}

.logo img {
    height: 3.2vh;
    width: 3.2vh;
    margin: 0.9vh 50%;
    transform: translate(-50%);
    border-radius: .4167rem;
}

/* 下拉框 */
.dropDown {
    width: 75%;
    margin-left: 0px;
}

.dropDown ul {
    width: 100%;
    height: 3.2vh;
    margin-left: 0;
    margin-top: 0.9vh;
    padding-left: 0vh;
    white-space: nowrap;
}

.dropDown ul li {
    position: relative;
    float: left;
    left: 0px;
    width: 0.3vh;
    height: 3.2vh;
    line-height: 3.2vh;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    /*超出部分隐藏*/
    overflow: hidden;
    transition-duration: 0.5s;
    z-index: 100;
}

.dropDown ul li:hover {
    height: 19.2vh;

}

/* 经过导航栏a标签变色 */
.login div span a:hover,
.dropDown ul li a:hover {
    color: orange;
}

.dropDown ul li:nth-of-type(odd) {
    width: 12vw;
}

.dropDown ul li span {
    display: block;
    margin-bottom: 0.2vh;
    white-space: nowrap;
    height: 3.2vh;
    width: 7.2vw;
    transform: scale(0.6);
    text-align: center;
}

.dropDown ul li span:not(:first-child) {
    margin-left: 0.2vh;
}

/* 下拉框二维码大小 */
ul li img {
    width: 7.2vw;
}

/* 顶部右侧登录注册 */
.login {
    width: 15%;
}

.login div {
    display: flex;
    height: 3.2vh;
    width: 15vw;
    margin-top: 2.5vh;
    margin-left: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.login div span {
    line-height: 3.2vh;
    font-weight: 900;
    transform: scale(0.6);
}

.login div span:nth-of-type(odd) {
    flex: 1;
    text-align: center;
}

/* 主题内容 */
section {
    position: relative;
    /* margin-top: 16rem; */
    height: 90vh;
    background-color: rgba(111, 111, 111, 0);
    display: grid;
    place-items: center;
}

.gallery {
    position: relative;
    width: 13vh;
    height: 25vh;
    transform-style: preserve-3d;
    animation: rotate 25s linear infinite;
}

.gallery span {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center;
    transform: rotateY(calc(var(--i)*45deg)) translateZ(20vh);
}

.gallery span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotate {
    from {
        transform: perspective(1200px) rotateY(0deg);
    }

    to {
        transform: perspective(1200px) rotateY(360deg);
    }
}

/* 尾部 */
footer {
    margin-top: 0px;
    height: 5vh;
    line-height: 5vh;
    padding-left: 5vh;
    background-color: rgba(255, 255, 255, 0);
}